package com.niodata.dp.task.entity;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializable;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
import java.io.IOException;
import java.util.Map;

public class PluginCategoryStatView extends JsonSerializable.Base {

  private Map<String, Map<String, String>> statMap;

  public PluginCategoryStatView(Map<String, Map<String, String>> statMap) {
    this.statMap = statMap;
  }

  @Override
  public void serialize(JsonGenerator jsonGenerator, SerializerProvider serializerProvider)
      throws IOException {
    jsonGenerator.writeObject(this.statMap);
  }

  @Override
  public void serializeWithType(JsonGenerator jsonGenerator, SerializerProvider serializerProvider,
      TypeSerializer typeSerializer) throws IOException {
    jsonGenerator.writeObject(this.statMap);
  }

}
